<?php 
$attributes = array('class' => 'adminForm ', 'id' => '');
echo form_open(site_url('admin/shop/categories/ordering'),$attributes);?>
<table class="kunTable">
	<thead>
    	<th width="20">{{ helper:lang line="global:identifier" }}</th>
        <th width="10"><input type="checkbox" class="checkAll" /></th>
        <th>{{ helper:lang line="global:title" }}</th>
        <th>{{ helper:lang line="global:date_created" }}</th>
        <th width="90">{{ helper:lang line="global:image" }}</th>
		<th width="50">{{ helper:lang line="global:action" }}</th>
    </thead>
    <tbody>
	{{model}}
			<tr>
            	<td>
                	{{ helper:count identifier }}
                </td>
                <td><input type="checkbox" class="checkGroup" value="{{id}}" /></td>
                <td>{{title}}</td>
                <td>{{ helper:date format='d-m-Y H:i' timestamp = created }}</td>
                <td><img width="50" height="50" src="{{news:news_image: file = image }}"  /></td>
				<td>
					{{button:href: class="edit" title={helper:lang line="global:edit"} data-toggle="tooltip" 
                    		href={url:site uri="admin/news/article/edit/{{id}}"} }}
                    {{button:href: class="del" title={ helper:lang line="global:delete"} data-toggle="tooltip" 
                    		href={url:site uri="admin/news/article/delete/{{id}}"} }}
				</td>
            </tr>
	{{/model}}
	</tbody>
</table>	

<script type="text/javascript">
//$('.dataFitter').dataTable();
$('.tooltips').tooltip();
$('.checkAll').on('click', function () {
$(this).closest('table').find('.checkGroup').prop('checked', this.checked);
}); 
</script>